/**
 * Copyright &copy; 2012-2017 <a href="https://vivo.com">vivo</a> All rights reserved.
 */
package com.vivo.fx.dealer.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 经销商关系Entity
 * @author jyangye
 * @version 2017-11-07
 */
public class FxDealerrelation extends DataEntity<FxDealerrelation> {
	
	private static final long serialVersionUID = 1L;
	private String dealerrelationidBak;		// dealerrelationid_bak
	private String dealerid;		// dealerid
	private String parentdealerid;		// parentdealerid
	private String levelcode;		// levelcode
	private String leveldepth;		// leveldepth
	private String isclosed;		// isclosed
	private Date closedate;		// closedate
	private String closeusername;		// closeusername
	private String parentdealerrelationid;		// parentdealerrelationid
	private String unmanagedimeawareskindcodes;		// unmanagedimeawareskindcodes
	private String closereason;		// closereason
	private String showordercode;		// showordercode
	private String dealerrelationid;		// dealerrelationid
	
	public FxDealerrelation() {
		super();
	}

	public FxDealerrelation(String id){
		super(id);
	}

	@Length(min=0, max=32, message="dealerrelationid_bak长度必须介于 0 和 32 之间")
	public String getDealerrelationidBak() {
		return dealerrelationidBak;
	}

	public void setDealerrelationidBak(String dealerrelationidBak) {
		this.dealerrelationidBak = dealerrelationidBak;
	}
	
	@Length(min=0, max=11, message="dealerid长度必须介于 0 和 11 之间")
	public String getDealerid() {
		return dealerid;
	}

	public void setDealerid(String dealerid) {
		this.dealerid = dealerid;
	}
	
	@Length(min=0, max=11, message="parentdealerid长度必须介于 0 和 11 之间")
	public String getParentdealerid() {
		return parentdealerid;
	}

	public void setParentdealerid(String parentdealerid) {
		this.parentdealerid = parentdealerid;
	}
	
	@Length(min=1, max=30, message="levelcode长度必须介于 1 和 30 之间")
	public String getLevelcode() {
		return levelcode;
	}

	public void setLevelcode(String levelcode) {
		this.levelcode = levelcode;
	}
	
	public String getLeveldepth() {
		return leveldepth;
	}

	public void setLeveldepth(String leveldepth) {
		this.leveldepth = leveldepth;
	}
	
	@Length(min=0, max=1, message="isclosed长度必须介于 0 和 1 之间")
	public String getIsclosed() {
		return isclosed;
	}

	public void setIsclosed(String isclosed) {
		this.isclosed = isclosed;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getClosedate() {
		return closedate;
	}

	public void setClosedate(Date closedate) {
		this.closedate = closedate;
	}
	
	@Length(min=0, max=20, message="closeusername长度必须介于 0 和 20 之间")
	public String getCloseusername() {
		return closeusername;
	}

	public void setCloseusername(String closeusername) {
		this.closeusername = closeusername;
	}
	
	@Length(min=0, max=11, message="parentdealerrelationid长度必须介于 0 和 11 之间")
	public String getParentdealerrelationid() {
		return parentdealerrelationid;
	}

	public void setParentdealerrelationid(String parentdealerrelationid) {
		this.parentdealerrelationid = parentdealerrelationid;
	}
	
	@Length(min=0, max=250, message="unmanagedimeawareskindcodes长度必须介于 0 和 250 之间")
	public String getUnmanagedimeawareskindcodes() {
		return unmanagedimeawareskindcodes;
	}

	public void setUnmanagedimeawareskindcodes(String unmanagedimeawareskindcodes) {
		this.unmanagedimeawareskindcodes = unmanagedimeawareskindcodes;
	}
	
	@Length(min=0, max=100, message="closereason长度必须介于 0 和 100 之间")
	public String getClosereason() {
		return closereason;
	}

	public void setClosereason(String closereason) {
		this.closereason = closereason;
	}
	
	@Length(min=0, max=3, message="showordercode长度必须介于 0 和 3 之间")
	public String getShowordercode() {
		return showordercode;
	}

	public void setShowordercode(String showordercode) {
		this.showordercode = showordercode;
	}
	
	@Length(min=1, max=11, message="dealerrelationid长度必须介于 1 和 11 之间")
	public String getDealerrelationid() {
		return dealerrelationid;
	}

	public void setDealerrelationid(String dealerrelationid) {
		this.dealerrelationid = dealerrelationid;
	}
	
}